//
//  FHInputToolbar.h
//  MyWeChat
//
//  Created by 蔡欣东 on 15/10/5.
//  Copyright © 2015年 蔡欣东. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol FHInputToolbarDelegate <NSObject>

-(void)onInputBtnTapped:(NSString*)text;
-(void)onLeftBtnTapped:(NSString*)text;

@end

@interface FHInputToolbar : UIView<UITextFieldDelegate>
@property(nonatomic,strong)UIView* backgroundView;
@property(nonatomic,strong)UIImageView* textFieldBackground;
@property(nonatomic,strong)UITextField* textField;
@property(nonatomic,strong)UIButton* leftBtn;
@property(nonatomic,strong)UIButton* rightBtn;

@property(nonatomic,assign)id<FHInputToolbarDelegate> delegate;

-(instancetype)initWithFrame:(CGRect)frame;
@end
